package peace.gui.controls.scroll
{
	import flash.events.Event;

public class ScrollEvent extends Event
{
	public static const SCROLL:String = "scroll";
	public static const SCROLL_X:String = "scrollX";
	public static const SCROLL_Y:String = "scrollY";
	public static const SCROLL_POINT:String = "scrollPoint";
	
	public static const SCROLL_START:String = "scrollStart";
	public static const SCROLL_END:String = "scrollEnd";

	public static const CONTENT_SIZE_CHANGED:String = "contentSizeChanged";
	/**
	* Number для Scrollbar, Point для Scrollpane
	*/	
	public var data:*;
	
	function ScrollEvent (type:String, data:*, bubbles:Boolean = false, cancelable:Boolean = false)
	{
		super(type, bubbles, cancelable);
		this.data = data;
	}

	override public function clone():Event
	{
		return new ScrollEvent(type, data, bubbles, cancelable);
	}
	
}

}